package com.dg.gaming.client.gui
{
	import flash.events.Event;

	public class DGEvent extends Event
	{
		public static const DGEVENT:String = "DGEVENT";
		public static const DG_MSGTYPE_CONNECT:String = "CONNECT";
		public static const DG_MSGTYPE_ERROR:String = "ERROR";
		public static const DG_MSGTYPE_MESSAGE:String = "MESSAGE";
		
		private var _msgType:String="";
		private var _msg:*;
		
		public function DGEvent(msgType:String,msg:*=null ,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(DGEVENT, bubbles, cancelable);
			this.msgType = msgType;
			this._msg = msg;
		}
		
		public function set msgType(value:String):void {
			_msgType=value;
		}

		public function get msgType():String {
			return _msgType;
		}
		
		public function set msg(value:*):void {
			_msg=value;
		}

		public function get msg():* {
			return _msg;
		}
	}
}